package com.ithe.shopweb.serve.impl;

import com.ithe.shopweb.mapper.ManageMapper;
import com.ithe.shopweb.pojo.resp.CustomerResp;
import com.ithe.shopweb.pojo.resp.ManageResp;
import com.ithe.shopweb.pojo.resp.OfferResp;
import com.ithe.shopweb.serve.ManageServe;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 功能：
 * 日期： 2024/5/26 12:18
 */

@Service
public class ManageServeImpl implements ManageServe {

    @Autowired
    private ManageMapper manageMapper;

    @Override
    public List<OfferResp> queryState(String str, Integer pageNum, Integer pageSize) {
        return manageMapper.queryState(str, pageNum, pageSize);
    }

    @Override
    public List<OfferResp> queryOffer(String str, Integer pageNum, Integer pageSize) {
        return manageMapper.queryOffer(str, pageNum, pageSize);
    }

    @Override
    public Integer deleteOffer(String offerID) {
        return manageMapper.deleteOffer(offerID);
    }

    @Override
    public List<ManageResp> queryAdmin(String str, Integer pageNum, Integer pageSize) {
        return manageMapper.queryAdmin(str, pageNum, pageSize);
    }

    @Override
    public Integer deleteAdmin(String adminID) {
        return manageMapper.deleteAdmin(adminID);
    }

    @Override
    public List<CustomerResp> queryCustomer(String str, Integer pageNum, Integer pageSize) {
        return manageMapper.queryCustomer(str, pageNum, pageSize);
    }

    @Override
    public Integer deleteCustomer(String userID) {
        return manageMapper.deleteCustomer(userID);
    }
}
